﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E8D RID: 3725
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueCommonBuff : IMessage<RogueCommonBuff>, IMessage, IEquatable<RogueCommonBuff>, IDeepCloneable<RogueCommonBuff>, IBufferMessage
	{
		// Token: 0x17002F3D RID: 12093
		// (get) Token: 0x0600A6E4 RID: 42724 RVA: 0x001C28E8 File Offset: 0x001C0AE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueCommonBuff> Parser
		{
			get
			{
				return RogueCommonBuff._parser;
			}
		}

		// Token: 0x17002F3E RID: 12094
		// (get) Token: 0x0600A6E5 RID: 42725 RVA: 0x001C28EF File Offset: 0x001C0AEF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueCommonBuffReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002F3F RID: 12095
		// (get) Token: 0x0600A6E6 RID: 42726 RVA: 0x001C2901 File Offset: 0x001C0B01
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueCommonBuff.Descriptor;
			}
		}

		// Token: 0x0600A6E7 RID: 42727 RVA: 0x001C2908 File Offset: 0x001C0B08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonBuff()
		{
		}

		// Token: 0x0600A6E8 RID: 42728 RVA: 0x001C2910 File Offset: 0x001C0B10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonBuff(RogueCommonBuff other) : this()
		{
			this.buffId_ = other.buffId_;
			this.buffLevel_ = other.buffLevel_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A6E9 RID: 42729 RVA: 0x001C2941 File Offset: 0x001C0B41
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonBuff Clone()
		{
			return new RogueCommonBuff(this);
		}

		// Token: 0x17002F40 RID: 12096
		// (get) Token: 0x0600A6EA RID: 42730 RVA: 0x001C2949 File Offset: 0x001C0B49
		// (set) Token: 0x0600A6EB RID: 42731 RVA: 0x001C2951 File Offset: 0x001C0B51
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BuffId
		{
			get
			{
				return this.buffId_;
			}
			set
			{
				this.buffId_ = value;
			}
		}

		// Token: 0x17002F41 RID: 12097
		// (get) Token: 0x0600A6EC RID: 42732 RVA: 0x001C295A File Offset: 0x001C0B5A
		// (set) Token: 0x0600A6ED RID: 42733 RVA: 0x001C2962 File Offset: 0x001C0B62
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BuffLevel
		{
			get
			{
				return this.buffLevel_;
			}
			set
			{
				this.buffLevel_ = value;
			}
		}

		// Token: 0x0600A6EE RID: 42734 RVA: 0x001C296B File Offset: 0x001C0B6B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueCommonBuff);
		}

		// Token: 0x0600A6EF RID: 42735 RVA: 0x001C2979 File Offset: 0x001C0B79
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueCommonBuff other)
		{
			return other != null && (other == this || (this.BuffId == other.BuffId && this.BuffLevel == other.BuffLevel && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A6F0 RID: 42736 RVA: 0x001C29B8 File Offset: 0x001C0BB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BuffId != 0U)
			{
				num ^= this.BuffId.GetHashCode();
			}
			if (this.BuffLevel != 0U)
			{
				num ^= this.BuffLevel.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A6F1 RID: 42737 RVA: 0x001C2A10 File Offset: 0x001C0C10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A6F2 RID: 42738 RVA: 0x001C2A18 File Offset: 0x001C0C18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A6F3 RID: 42739 RVA: 0x001C2A24 File Offset: 0x001C0C24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BuffLevel != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.BuffLevel);
			}
			if (this.BuffId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.BuffId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A6F4 RID: 42740 RVA: 0x001C2A80 File Offset: 0x001C0C80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BuffId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BuffId);
			}
			if (this.BuffLevel != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BuffLevel);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A6F5 RID: 42741 RVA: 0x001C2AD8 File Offset: 0x001C0CD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueCommonBuff other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BuffId != 0U)
			{
				this.BuffId = other.BuffId;
			}
			if (other.BuffLevel != 0U)
			{
				this.BuffLevel = other.BuffLevel;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A6F6 RID: 42742 RVA: 0x001C2B28 File Offset: 0x001C0D28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A6F7 RID: 42743 RVA: 0x001C2B34 File Offset: 0x001C0D34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.BuffId = input.ReadUInt32();
					}
				}
				else
				{
					this.BuffLevel = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040043D7 RID: 17367
		private static readonly MessageParser<RogueCommonBuff> _parser = new MessageParser<RogueCommonBuff>(() => new RogueCommonBuff());

		// Token: 0x040043D8 RID: 17368
		private UnknownFieldSet _unknownFields;

		// Token: 0x040043D9 RID: 17369
		public const int BuffIdFieldNumber = 12;

		// Token: 0x040043DA RID: 17370
		private uint buffId_;

		// Token: 0x040043DB RID: 17371
		public const int BuffLevelFieldNumber = 6;

		// Token: 0x040043DC RID: 17372
		private uint buffLevel_;
	}
}
